/**
 * @projectName spring-boot-examples-master
 * @package com.leo.springboot.service.impl
 * @className com.leo.springboot.service.impl.TestServiceImpl
 * @copyright Copyright 2020 XiaoFeiPeng, Inc All rights reserved.
 */
package com.leo.springboot.service.impl;

import com.leo.springboot.factory.StrategyFactory;
import com.leo.springboot.service.TestService;
import com.leo.springboot.strategy.Strategy;
import org.springframework.stereotype.Service;

/**
 * TestServiceImpl
 * @description
 * @author jiangyunfei
 * @date 2023/11/16 11:08
 * @version 1.0
 */

@Service
public class TestServiceImpl implements TestService {
    /**
     *
     * TestService
     *
     * @description
     * @return java.lang.String
     * @date 2023/11/16 11:09
     * @author jiangyunfei
     * @version 1.0
     */
    @Override
    public String test(Integer code) {
        Strategy strategy = StrategyFactory.execute(code);
        return strategy.dealActivity();
    }
}
